package com.zjmcollege.hotpot.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.sql.Timestamp;

/**
 * @author zpym
 * @CopyRight (C) http://www.iengoo.com
 * @brief
 * @email 122162005@qq.com
 * @date 2019-11-07 22:44
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
public class ArticleModel {
    private Long id;
    private String title;
    private String body;
    private String author;
    private String brief;
    private String editorValue;
    private int type;
    /**
     * 文档类型：
     * 1 : ueditor html 文档
     * 2:  md 文档
     */
    private int docType = 1;

    public String getBody() {
        return body == null ? editorValue : body;
    }
}
